package com.tvein.sanguo.controller.Game.system
{
	//flash
	//pureMVC
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	//custom
	import com.tvein.sanguo.common.CommonConstants;
	import com.tvein.sanguo.model.FilesProxy;
//
	public class ModuleFile extends SimpleCommand implements ICommand
	{
		private var filesData:FilesProxy;
		
		override public function execute(notification:INotification) : void
		{
			filesData = facade.retrieveProxy(FilesProxy.NAME) as FilesProxy;
			
			filesData.modulesFile = notification.getBody()[1];
			
			sendNotification(CommonConstants.FILELOADER, ["/fileloader -D", notification.getBody()[1][1]]);
		}
		
		//Custom
	}
}